package com.yuchao.base.xyc004.factory.simplefactory;

/**
 * Created by xingyuchao on 2017-06-17.
 * 测试简单工厂
 */
public class Main {
    public static void main(String[] args) {
        //这边就是我们的消费者
        /*ComputerService computer = new ComputerFactory().prodution("Dell");
        System.out.println(computer.getBrand());*/

        /*ComputerService computer = new ComputerFactory().prodution1(Asus.class);
        System.out.println(computer.getBrand());*/

        ComputerService computer = new ComputerFactory().prodution2(Asus.class);
        System.out.println(computer.getBrand());
    }
}